package com.my.service;


import javax.servlet.http.HttpServletRequest;


public interface GoodsService {

    String addGoods(String name, Double price, String imgUrl, Integer stock, String info, HttpServletRequest req);

    String deleteGoods(Integer goodsId);

    String deleteGoods(String goodsIds);

    String reverseGoods(Integer goodsId);

    String updateGoods(Integer id, String name, Double price, String imgUrl, Integer stock, String info, HttpServletRequest req);

    String showGoods(String context, Integer currentPage, Integer pageSize, String sort, Boolean asc, HttpServletRequest req);

    String showGoodsForUser(String context, Integer currentPage, Integer pageSize, String sort, Boolean asc);

    String selById(Integer id);

    String buyGoods(Integer num, Integer goodsId, HttpServletRequest req);

}
